<template>
  <div id="app">
    <!-- 挂载点 -->
    <router-view></router-view>
    <!-- 引入底部tab栏 -->
    <tab-bar v-if="$route.meta.showTabBar"></tab-bar>
  </div>
</template>
<script>
import TabBar from "./components/TabBar/TabBar.vue";
export default {
  name: "App",
  components: { TabBar },
  mounted() {
    // 得到跳转路由的数据信息
    console.log(this.$route);
    console.log(this.$route.path);
  },
};
</script>

<style>
@import "./style/base.css";
@import "./fonts/iconfont.css";
body {
  background-color: #f4f4f4;
}
</style>
